package com.cskaoyan.mapper;

import com.cskaoyan.bean.Systempermissions;
import com.cskaoyan.bean.role.SimpleRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    List<SimpleRole> selectOptions();

    List<Systempermissions> selectSystempermissions();

    List<String> selectRoleRolePermissions(Integer roleId);

    Integer updateDeletedByRoleId(Integer roleId);

    Integer insertPermissionsByRoleId(@Param("roleId") Integer roleId, @Param("permission") String permission);
}
